home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 18 / CU Amiga Magazine's Super CD-ROM 18 (1997)(EMAP Images)(GB)[!][issue 1998-01].iso / CUCD / Online / CNetDemo / cnet / sdk / include / jobs.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-09-04  |  2.5 KB  |  64 lines

  1.  
  2. #include "EVENTDEFS.H"
  3.  
  4. struct JobType {
  5.     ULONG    date, valid, repeat;
  6.     ULONG    memo, length;
  7.  
  8.     USHORT    event, type;
  9.     char    args[80];
  10.     char    ports[40];
  11.  
  12.     UBYTE    exclude_days, status, deleted;
  13. };
  14.  
  15.  
  16. /* NEW for v4.12 - May-16-96 */
  17. struct NewJobType {
  18.     char        Name[40];        // Event identifier/Name - for user recognition - MUST be unique to other event names !
  19.     char        args[128];        // command to execute
  20.     char        ports[40];        // packed CNet port range string (ie. 1-3,5,7)
  21.  
  22.     USHORT    invoke;            // Immediate, etc,.. see EVENTDEFS.H for explanation
  23.     USHORT    type;                // Event Type - CNetC, ARexx, LogonBPS, etc,. see EVENTDEFS.H
  24.  
  25.     UBYTE        status;            // ready, disabled..
  26.  
  27.     // see include:time.h for time_t and tm attributes
  28.     // all time_t values are converted to tm structures before comparison with critical times
  29.  
  30.     ULONG        ExeTime;                        // time at which to execute event
  31.     ULONG        DateExecuted;                // time event last executed (packed time_t value) - cnet only regards the "tm_day" of this value
  32.     ULONG        valid;                        // how long (in seconds) is event valid after ExeTime
  33.     LONG        Days;                            // What days TO PERFORM events - Bits 1-7 = Sun-Sat
  34.  
  35.     UBYTE        deleted;                        // TRUE if event deleted/obsolete - only deleted if the event is an "execute once/delete" event or if there is no repeat time
  36.  
  37.     struct    NewJobType    *NextJob;    // next job/event in list or NULL if none
  38. };
  39.  
  40.  
  41. // updated for v4.12d
  42. struct JobType4 {
  43.     char        Name[40];                // Event identifier/Name - for user recognition - MUST be unique to other event names !
  44.     char        args[128];                // command to execute
  45.     char        ports[40];                // CNet port range string (ie. 1-3,5,7)
  46.  
  47.     USHORT    invoke;                    // Immediate, etc,.. see EVENTDEFS.H for explanation
  48.     USHORT    type;                        // Event Type - CNetC, ARexx, LogonBPS, etc,. see EVENTDEFS.H
  49.  
  50.     UBYTE        status;                    // ready, disabled..
  51.  
  52.     ULONG        StartTime;                // Date to start event - includes start time & date (since midnight, Jan-01-1970)
  53.     ULONG        DateExecuted;            // time event last executed (packed LONG value in seconds since Jan-01-1970)
  54.     ULONG        valid;                    // how long (in seconds) is event valid after ExeTime
  55.     LONG        Days;                        // What days to perform events - Bits 0-6 = Sun-Sat
  56.  
  57.     UBYTE        deleted;                    // TRUE if event deleted/obsolete - only deleted if the event is an "execute once/delete" event
  58.  
  59.     struct    JobType4    *NextJob;    // next job/event in list or NULL if none
  60.  
  61.     ULONG        repeat;                    // when to repeat event - days, hours & minutes expressed in seconds
  62.     UBYTE        runport;                    // 0=do not run port, 1=run port if not loaded and leave running, 2=run port and then close after door execution
  63. };
  64.